$transition: all 0.3s ease;
$primary: #54cf4c;

// 给中间选中行添加border-radius
::v-deep .view-column.second .select-line {
  border-radius: 0 16rpx 16rpx 0;
}
::v-deep .view-column.first .select-line {
  border-radius: 16rpx 0 0 16rpx;
}

// 修改原有的上下边框颜色
::v-deep .select-line::after {
  border-bottom: 2rpx solid #fff1ec;
}
::v-deep .select-line::before {
  border-top: 2rpx solid #fff1ec;
}
.select-line {
  background: rgba(255, 241, 236, 0.3);
  height: 101rpx;
  line-height: 101rpx;
  border-radius: 22rpx;
}
.select-item {
  font-size: 39rpx;
  font-weight: 500;
  color: #2e2e2e;
}

.calendar {
  padding: 22rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;

  view {
    width: 100rpx;
    height: 60rpx;

    font-size: 26rpx;
    font-weight: 500;
    color: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .active {
    width: 100rpx;
    height: 60rpx;
    background: linear-gradient(100deg, #ff8351 0%, #ff4f19 53%, #fe542a 100%);
    border-radius: 35rpx;
    color: white;
  }
}

.yt-dateTimePicker {
  position: relative;
  z-index: 999;

  picker-view {
    height: 100%;
  }

  .mask {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: $transition;

    &.show {
      visibility: visible;
      opacity: 1;
    }
  }

  .wrap {
    z-index: 1001;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: $transition;
    transform: translateY(100%);

    &.show {
      transform: translateY(0);
    }
  }

  .picker-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8rpx 42rpx;
    background-color: darken(#fff, 2%);
    background-color: #fff;
    height: 123rpx;

    .cancel {
      font-size: 38rpx;
      font-weight: bold;
    }
    .submit {
      //font-size: 42rpx;
      font-weight: 500;
      color: #5677fc;
    }

    text {
      font-size: 42rpx;
      font-weight: 500;
      color: #2e2e2e;
    }
  }

  .picker-body {
    width: 100%;
    height: 420rpx;
    overflow: hidden;
    background-color: #fff;
    padding: 0 25rpx;
  }

  .column-item {
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 27rpx;
    font-weight: 500;
    color: #2e2e2e;
  }

  .btn-picker {
    position: relative;
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    line-height: 2;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    background-color: #eee;
    font-size: 14px;
    border-radius: 3px;
    color: #000;
    cursor: pointer;
  }

  .btn-picker.submit {
    background-color: $primary;
    color: #fff;
  }
}
